package com.example.stock.http;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface Api {

    @Headers({"Content-Type:application/x-www-form-urlencoded", "Accept-Encoding:gzip,default"})
    @POST
    Call<String> getArriveOrder(@Url String url);

    //soap1.1
    @Headers({"Content-Type:application/x-www-form-urlencoded; charset=utf-8"})
    @POST("uapws/service/nc.ws.base.intf.IBusiPDABillService")
    Call<String> getArriveOrder12(@Body String s);

    @Headers({"Content-Type:application/x-www-form-urlencoded;charset=UTF-8"})
    @POST("uapws/service/nc.ws.base.intf.IBusiPDABillService")
    Call<String> savePogeneral12(@Body String s);

    @Headers({"Content-Type:text/html; charset=us-ascii"})
    @GET("WebServices/WeatherWebService.asmx/getWeatherbyCityName?theCityName=西安")
    Call<String> getWeather();

    //soap1.1
    @Headers({"Content-Type:text/html; charset=us-ascii",
            "SOAPAction:http://WebXml.com.cn/getWeatherbyCityName" })
    @POST("WebServices/WeatherWebService.asmx")
    Call<String> getWeather11(@Body String s);

    //soap1.2
    @Headers({"Content-Type:application/soap+xml; charset=utf-8" })
    @POST("WebServices/WeatherWebService.asmx")
    Call<String> getWeather12(@Body String s);

}
